// pages/team/user_rank.js
import { Team } from '../../model/team.js';
var team = new Team();
Page({

  /**
   * 页面的初始数据
   */
  data: {
    hidden: false,
    team: {}
  },

  /**
   * 生命周期函数--监听页面加载
   */
  onLoad: function () {
    wx.showLoading({
      title: '加载中',
    });
    this.getTeamRank();
  },
  getTeamRank() {
    team.getTeamUserRankByUser((res) => {
      this.setData({
        hidden: true,
        team: res
      })
      wx.hideLoading();
    })
  }
})